#include "mainwindow.h"
#include "glwidget.h"
MainWindow::MainWindow(QWidget *parent)
	: QMainWindow(parent)
{
	ui.setupUi(this);

	
	auto glwidget = new glWidget(this);

	this->setCentralWidget(glwidget);


	connect(ui.pushButton_OK, &QPushButton::clicked, [=]
	{
		glwidget->setFragmentSource(ui.plainTextEdit->toPlainText());
	});


}

MainWindow::~MainWindow()
{

}
